/**
 * @author iurie
 * Define common utility methods
 */

/*------------------------------------------------------*/

/**
 * Get request
 */
function createRequest() {
	try {
		request = new XMLHttpRequest();
		
	} catch(tryMS) {
		try {
			request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (tryOtherMS) {
			try {
				request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (fail) {
				alert("Unable to create request!!!");
				request = null;
			}
		}
	}
	return request;
}